from rest_framework.pagination import PageNumberPagination


class MyPagionation(PageNumberPagination):
    # 自定义分页器
    # 设置一页几条数据
    page_size = 3
    # 设置页码参数，也就是几页
    page_query_param = 'page'
    page_size_query_param = 'pagesize'